package com.example.myapplication22;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class ChatActivity extends AppCompatActivity{
    Button b;//发送
    EditText sendtext;//发送的文本
    TextView t2;
    TextView t3;
    TextView t4;
    TextView t5;
    TextView t6;
    TextView t7;
    TextView t8;
    TextView t9;
    TextView t10;
    TextView t11;
    TextView t12;
    TextView t13;
    TextView t14;
    TextView t15;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat);
        //b=(Button) findViewById(R.id.button);
        //b.setOnClickListener(this);
       // sendtext = findViewById(R.id.textInputLayout);
        //t2=findViewById(R.id.textView2);
    }
   // @Override
   // public void onClick(View v) {

        //if (v.getId() == R.id.button) {
           // String msg = sendtext.getText().toString();
             //new MqttManager().send("http://127.0.0.1:18083/#/","myMQTT/info",msg);
             //t2.setText(new MqttManager().subscribe("http://127.0.0.1:18083/#/","myMQTT/info"));
      //  }
   // }//
}
